package com.sunday.auth.controller;

import com.sunday.auth.factory.AnimalFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
  @program: design-patterns
  @author: Jh
  @create: 2021-09-06 18:12
*/
@RestController
public class TestController {

    @GetMapping("test")
    public void test(Integer type) {
        AnimalFactory.TYPE_ITEM_MAPPING.get(type).eat();
    }
}
